﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace AnyGrid.Renderers
{
    /// <summary>
    /// This type wraps up internal information used during grid rendering, such as URIs, which may depend upon the view context.
    /// </summary>
    internal class GridContext
    {
        /// <summary>
        /// The url property of the Grid's options object.
        /// </summary>
        public string DataUrl { get; set; }

        public HtmlHelper HtmlHelper { get; set; }

        public ModelMetadataProvider MetadataProvider { get; set; }

        /// <summary>
        /// Metadata about the view model for individual row in the grid.
        /// </summary>
        public ModelMetadata RowModelMetadata { get; set; }

        public GridViewOptions ViewOptions { get; set; }
    }
}
